import ProxyInterface from '../proxy-interface';
import { ProjectModel } from '../model/projects';

class ProjectModelProxy implements ProxyInterface<ProjectModel> {
  public projectModel = new ProjectModel();

  constructor (responseData) {
    let data = responseData.data || responseData;
    Object.assign<ProjectModel, ProjectModel>(this.projectModel, data)
  }

  getModel (): ProjectModel {
    return this.projectModel;
  }
}

export default ProjectModelProxy;
